package com.k8s.hello.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

@FeignClient("base")
public interface BaseClient {

    @RequestMapping(method = RequestMethod.GET, value = "/global/config")
    ResponseEntity<Map<String,Object>> getConfig();
}
